module_Name_List="simple complex"

for module_Name in $module_Name_List
do

# 1. Build a bundle with metro.config.diff.js
react-native bundle --platform android --dev false --entry-file index.${module_Name}.js --bundle-output __async_load_output__/diff.android.${module_Name}.bundle --assets-dest __async_load_output__/index/android --config ./metro.config.diff.js --verbose

# 2. Remve the Polyfills part in the output file.
node ./__async_load_shell__/removePolyfill.js  ./__async_load_output__/diff.android.${module_Name}.bundle 

# 3. zip file 
# gzip -kf ./__async_load_output__/diff.android.${module_Name}.bundle

done

# 4. Print Report Info

node ./__async_load_shell__/printBundleReport.js